#ifndef _PARTHUS_TC_CONST_
#define _PARTHUS_TC_CONST_

/**********************************************************************
 *
 * MODULE NAME:    tc_const.h
 * PROJECT:       BlueStream
 * DESCRIPTION:   Constants used by the TCI (Command Opcodes etc.)
 * MAINTAINER:     Daire McNamara <Daire McNamara@sslinc.com>
 * CREATION DATE:  13 April 2000
 *
 * SOURCE CONTROL: $Id: tc_const.h,v 1.18 2009/12/31 10:10:03 tianwq Exp $
 *
 * LICENSE:
 *     This source code is copyright (c) 2000-2004 Ceva Inc.
 *     All rights reserved.
 *
 * REVISION HISTORY:
 *
 **********************************************************************/

/*
 * TCI SYSTEM TEST OP CODES - OPCODE GROUP SUBFIELD = 0x3F
 */
#define DATAPUMP_LOCAL                                  (0x00000006)
#define DATAPUMP_LOOPBACK                               (0x00000005)

#define ST_G                                            ( 0x3F << 10)

#define TCI_IGNORE_EXTEND_CMD                           0x0000 + ST_G
#define TCI_ACTIVATE_REMOTE_DUT                         0x0002 + ST_G
#define TCI_TEST_CONTROL                                0x0003 + ST_G
#define TCI_INCREASE_REMOTE_POWER                       0x0004 + ST_G
#define TCI_WRITE_LOCAL_HOP_FREQUENCIES                 0x0005 + ST_G
#define TCI_READ_LOCAL_HARDWARE_VERSION                 0x0006 + ST_G
#define TCI_DECREASE_REMOTE_POWER                       0x0007 + ST_G
#define TCI_INCREASE_LOCAL_VOLUME                       0x0008 + ST_G
#define TCI_DECREASE_LOCAL_VOLUME                       0x0009 + ST_G
#define TCI_WRITE_LOCAL_NATIVE_CLOCK                    0x000A + ST_G
#define TCI_READ_LOCAL_NATIVE_CLOCK                     0x000B + ST_G
#define TCI_READ_LOCAL_HOST_CONTROLLER_RELATIVE_MIPS    0x000C + ST_G
#define TCI_TYPE_APPROVAL_TEST_CONTROL                  0x000D + ST_G
#define TCI_SET_LOCAL_FAILED_ATTEMPTS_COUNTER           0x000E + ST_G
#define TCI_CLEAR_LOCAL_FAILED_ATTEMPTS_COUNTER         0x000F + ST_G
#define TCI_READ_LOCAL_DEFAULT_PACKET_TYPE              0x0010 + ST_G
#define TCI_WRITE_LOCAL_DEFAULT_PACKET_TYPE             0x0011 + ST_G
#define TCI_WRITE_LOCAL_SYNCWORD                        0x0012 + ST_G
#define TCI_WRITE_LOCAL_HOPPING_MODE                    0x0013 + ST_G
#define TCI_READ_LOCAL_HOPPING_MODE                     0x0014 + ST_G
#define TCI_WRITE_LOCAL_WHITENING_ENABLE                0x0015 + ST_G
#define TCI_READ_LOCAL_WHITENING_ENABLE                 0x0016 + ST_G
#define TCI_WRITE_LOCAL_RADIO_POWER                     0x0017 + ST_G
#define TCI_READ_LOCAL_RADIO_POWER                      0x0018 + ST_G
#define TCI_SET_LOCAL_NEXT_AVAILABLE_AM_ADDR            0x0019 + ST_G
#define TCI_SET_LOCAL_BD_ADDR                           0x001A + ST_G
#define TCI_WRITE_LOCAL_LINK_KEY_TYPE                   0x001B + ST_G
#define TCI_READ_LOCAL_LINK_KEY_TYPE                    0x001C + ST_G
#define TCI_READ_LOCAL_EXTENDED_FEATURES                0x001D + ST_G
#define TCI_WRITE_LOCAL_FEATURES                        0x001E + ST_G
#define TCI_WRITE_LOCAL_EXTENDED_FEATURES               0x001F + ST_G
#define TCI_READ_LOCAL_TIMING_INFORMATION               0x002A + ST_G
#define TCI_WRITE_LOCAL_TIMING_INFORMATION              0x002B + ST_G
#define TCI_READ_REMOTE_TIMING_INFORMATION              0x002C + ST_G
#define TCI_WRITE_LOCAL_HARDWARE_REGISTER               0x002D + ST_G
#define TCI_RESET_LOCAL_BASEBAND_MONITORS               0x002E + ST_G
#define TCI_UPDATE_MANUFACTURING_INFORMATION            0x002F + ST_G
#define TCI_WRITE_LOCAL_RADIO_REGISTER                  0x0030 + ST_G
#define TCI_READ_LOCAL_RADIO_REGISTER                   0x0031 + ST_G
#define TCI_CHANGE_RADIO_MODULATION                     0x0032 + ST_G
#define TCI_READ_RADIO_MODULATION                       0x0033 + ST_G
#define TCI_SET_HCIT_UART_BAUD_RATE                     0x0034 + ST_G
#define TCI_LOCAL_AREA_DOWNLOAD                         0x0035 + ST_G
#define TCI_WRITE_HOST_SPECIFIC_PARAMETERS              0x0036 + ST_G
#define TCI_READ_LOCAL_HARDWARE_AREA                    0x0037 + ST_G
#define TCI_SET_SYSTEM_HARDWARE_CONFIGURATION           0x0038 + ST_G
#define TCI_SEND_ENCRYPTION_KEY_SIZE_MASK_REQ           0x0039 + ST_G
#define TCI_RESET_LOCAL_PUMP_MONITORS                   0x003A + ST_G
#define TCI_READ_LOCAL_PUMP_MONITORS                    0x003B + ST_G
#define TCI_WRITE_LOCAL_ENCRYPTION_KEY_LENGTH           0x003C + ST_G
#define TCI_READ_LOCAL_ENCRYPTION_KEY_LENGTH            0x003D + ST_G
#define TCI_READ_LOCAL_HOP_FREQUENCIES                  0x003E + ST_G
#define TCI_READ_LOCAL_BASEBAND_MONITORS                0x003F + ST_G
#define TCI_SET_DISABLE_LOW_POWER_MODE                  0x0040 + ST_G
#define TCI_SET_ENABLE_LOW_POWER_MODE                   0x0041 + ST_G
#define TCI_READ_R2P_MIN_SEARCH_WINDOW                  0x0042 + ST_G
#define TCI_WRITE_R2P_MIN_SEARCH_WINDOW                 0x0043 + ST_G
#define TCI_SET_DISABLE_SCO_REPEATER_MODE               0x0044 + ST_G
#define TCI_SET_ENABLE_SCO_REPEATER_MODE                0x0045 + ST_G
#define TCI_WRITE_ESCO_RETRANSMISSION_MODE              0x0046 + ST_G
#define TCI_READ_ESCO_RETRANSMISSION_MODE               0x0047 + ST_G

#define TCI_VCI_CLK_OVERRIDE                            0x004E + ST_G
#define TCI_SET_BROADCAST_SCAN_WINDOW                   0x004F + ST_G
#define TCI_WRITE_PARK_PARAMETERS                       0x0050 + ST_G
#define TCI_READ_UNUSED_STACK_SPACE                     0x0051 + ST_G

#define TCI_WRITE_AFH_CONTROL                           0x0060 + ST_G

#define TCI_READ_RAW_RSSI                               0x0061 + ST_G
#define TCI_READ_BER                                    0x0062 + ST_G
#define TCI_READ_PER                                    0x0063 + ST_G
#define TCI_READ_RAW_RSSI_PER_BER                       0x0064 + ST_G

#define TCI_FORCE_SYSTEM_HALT                           0x0065 + ST_G


#define TCI_WRITE_SECURITY_TIMEOUTS                     0x0066 + ST_G

#define TCI_WRITE_FEATURES                              0x0067 + ST_G

#define TCI_WRITE_FREQ_OFFSET                           0x0068 + ST_G
#define TCI_WRITE_MIN_SLEEP                             0x0069 + ST_G
#define TCI_READ_LOCAL_BASEBAND_MONITORS_EDR            0x0070 + ST_G
#define TCI_WRITE_HOST_LOG_SETTING                      0x0071 + ST_G
#define TCI_SET_QUEUE_FILTER                            0x0072 + ST_G

#define TCI_PLACE_A_CALL_WITH_NUMBER_SUPPLIED           0x0073 +ST_G    //add by xzc
#define TCI_LAST_NUMBER_REDAIL                          0x0074 + ST_G   //add by xzc

#define TCI_BCCMD_90                                    0x0090 + ST_G
#define TCI_WRITE_BUFFER_SIZE                           0x0091 + ST_G

#define TCI_MTK_56                                      0x0056 + ST_G
#define TCI_MTK_5b                                      0x005b + ST_G
#define TCI_MTK_76                                      0x0076 + ST_G
#define TCI_MTK_77                                      0x0077 + ST_G
#define TCI_MTK_d0                                      0x00d0 + ST_G
#define TCI_MTK_d1                                      0x00d1 + ST_G
#define TCI_MTK_42                                      0x0142 + ST_G

#define TCI_WARM_RESET                                  0x0100 + ST_G
#define TCI_READ_PHY_REGISTER                           0x0101 + ST_G
#define TCI_WRITE_PHY_REGISTER                          0x0102 + ST_G
#define TCI_READ_PHY_BLOCK                              0x0103 + ST_G
#define TCI_WRITE_PHY_BLOCK                             0x0104 + ST_G
#define TCI_SET_PSKEY                                   0x0105 + ST_G
#define TCI_RUN_DATA                                    0x0106 + ST_G

#define TCI_BASEBAND_TXTEST                             0x0110 + ST_G
#define TCI_BASEBAND_RXTEST                             0x0111 + ST_G
#define TCI_BASEBAND_TESTEND                            0x0112 + ST_G

#define TCI_MTK_177                                     0x0177 + ST_G

#define TCI_SPP_START                                   0x0201 + ST_G
#define TCI_SPP_SEND                                    0x0202 + ST_G
#define TCI_SPP_CONNECTION					0x0203 + ST_G
#define TCI_SPP_DISCONNECT					0x0204 + ST_G

// HID
#define TCI_HID_CMD_CONNECT                                 0x0205 + ST_G
#define TCI_HID_CMD_DISCONNECT                              0x0206 + ST_G
#define TCI_HID_SEND_PACKET								0x0207 + ST_G
#define TCI_HID_RUN_FUNC					0x0208 + ST_G
#define TCI_COMBINED_READ_RSSI					0x0209 + ST_G

#define TCI_HID_ERASE_FLASH					0x020a + ST_G
#define TCI_HID_WRITE_FLASH					0x020b + ST_G
#define TCI_HID_READ_FLASH					0x020c + ST_G
#define TCI_HID_WRITE_FBYTE					0x020d + ST_G
#define TCI_HID_READ_FBYTE					0x020e + ST_G
#define TCI_HID_WRITE_EFUSE					0x020f + ST_G



#endif
